//默认参数：es6
function getInfo(name:string,age:number=18):string{
    return '姓名：'+name+'，年龄：'+age;
}

let info1 = getInfo('lisi');//18
let info2 = getInfo('zhangsan',20);

console.log(info1, info2);
